<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:forEach items="${articals.content}" var="artical">
	<article class="post">
		<div class="featured" title="推荐文章">
			<i class="fa fa-star fa-spin"></i>
			<c:choose>
				<c:when test="${artical.level == 2}">
					<i class="fa fa-star fa-spin"></i>
				</c:when>
				<c:when test="${artical.level == 3}">
					<i class="fa fa-star fa-spin"></i>
					<i class="fa fa-star fa-spin"></i>
				</c:when>
			</c:choose>
		</div>
		<div class="post-head">
			<h1 class="post-title">
				<a href="artical/${artical.id}">${artical.title}</a>
			</h1>
			<div class="post-meta">
				<span class="author">作者：${artical.author.userName }</span> •
				<time class="post-date">${artical.date }</time>
			</div>
		</div>
		<div class="post-content">
			<p>${artical.introduction }</p>
		</div>
		<div class="post-permalink">
			<a href="artical/${artical.id}" class="btn btn-default">阅读全文</a>
		</div>

		<footer class="post-footer clearfix">
			<div class="pull-left tag-list">
				<i class="fa fa-folder-open-o"></i>
				<c:forEach items="${artical.categories}" var="category">
					<a href="category/${category.content}/1">${category.content}</a>
				</c:forEach>
			</div>
			<div class="pull-right share"></div>
		</footer>
	</article>
</c:forEach>